package com.yanqu.road.entity.activity.turtle.config;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @Author : Cxp
 * @Time : 2024-09-06
 * @Description : 乌龟对对碰-消除类型配置实体类
 */

@FieldTypeAnnotation(tableName = "t_s_activity_turtle_model")
public class TurtleModel {
    @FieldTypeAnnotation(desc = "消除类型id")
    private int id;

    @FieldTypeAnnotation(desc = "类型标题")
    private String text;

    @FieldTypeAnnotation(desc = "类型说明")
    private String desc;

    @FieldTypeAnnotation(desc = "积分")
    private int score;

    @FieldTypeAnnotation(desc = "道具奖励")
    private String reward;

    @FieldTypeAnnotation(desc = "卡包奖励数量")
    private int turtleCard;

    @FieldTypeAnnotation(desc = "是否公告")
    private int isNotice;

    @FieldTypeAnnotation(desc = "显示概率")
    private float weight;

    public TurtleModel(ResultSet rs) throws SQLException {
        this.id = rs.getInt("id");
        this.text = rs.getString("text");
        this.desc = rs.getString("desc");
        this.score = rs.getInt("score");
        this.reward = rs.getString("reward");
        this.turtleCard = rs.getInt("turtleCard");
        this.isNotice = rs.getInt("isNotice");
        this.weight = rs.getInt("weight");
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }

    public int getTurtleCard() {
        return turtleCard;
    }

    public void setTurtleCard(int turtleCard) {
        this.turtleCard = turtleCard;
    }

    public int getIsNotice() {
        return isNotice;
    }

    public void setIsNotice(int isNotice) {
        this.isNotice = isNotice;
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }
}
